package com.btpn.infra.utils;

public class BussinessException extends RuntimeException {
	
	private static final long serialVersionUID = -1010668781430679310L;

	private String bussMsgCode;
	private Exception exception;

	public BussinessException(String bussMsgCode) {
		super();
		this.bussMsgCode = bussMsgCode;
	}

	public BussinessException(Exception exception) {
		super();
		this.exception = exception;
	}
	
	public BussinessException(String bussMsgCode, Exception exception) {
		super();
		this.bussMsgCode = bussMsgCode;
		this.exception = exception;
	}

	public String getBussMsgCode() {
		return bussMsgCode;
	}

	public void setBussMsgCode(String bussMsgCode) {
		this.bussMsgCode = bussMsgCode;
	}

	public Exception getException() {
		return exception;
	}

	public void setException(Exception exception) {
		this.exception = exception;
	}
}
